package com.huabo.contract.mysql.entity;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2022-04-07
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("TBL_YY_XDF_COMPANY")
@ApiModel(value="TblYyXdfCompany对象", description="")
public class TblYyXdfCompanyMySql implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("COMPANYID")
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
      private BigDecimal companyid;

    @TableField("COMPANYNAME")
    private String companyname;

    @TableField("TEAMID")
    private BigDecimal teamid;

    @TableField("CREATEDATE")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdate;

    @TableField("STAFFID")
    private BigDecimal staffid;

    @TableField("ORGID")
    private BigDecimal orgid;

    @TableField("REPORTID")
    private BigDecimal reportid;

    @TableField("FXTYPE")
    private String fxtype;

    @TableField("CSTATUS")
    private BigDecimal cstatus;

    @ApiModelProperty(value = "创建用户")
    private TblStaffMySql staff;

    @Transient
    private TblYyReportModelMySql reportmodel;//形成报告id

    @Transient
    private List<TblYyPriceMySql> list;
    @Transient
    private Set<TblBiPageMySql> pages = new HashSet();


}
